﻿using BJoin.Application.Dto;
using BJoin.Application.MapperProfile;
using BJoin.DemoProject.Dtos;
using BJoin.DemoProject.Entities;

namespace BJoin.DemoProject.MapperProfile
{
    public class FileProfile:BaseProfile
    {
        public FileProfile()
        {
            CreateMap<FileEntity, FileDto>().ReverseMap();
            CreateMap<FileEntity, FileUpdateDto>().ReverseMap();
            CreateMap<FileEntity, FileAddDto>().ReverseMap();
            CreateMap<FileAddDto, FileUpdateDto>().ReverseMap();
            CreateMap<FileDto, FileWithChildDto>().ReverseMap();
            CreateMap<ResPagingDto<FileDto>, ResPagingDto<FileWithChildDto>>().ReverseMap();
        }
    }
}
